<template>
  <div>
      <el-breadcrumb separator-class="el-icon-arrow-right">
  <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
  <el-breadcrumb-item>{{name}}</el-breadcrumb-item>
</el-breadcrumb>
  </div>
</template>

<script>
export default {
    data(){
        return{
            name:""
        }
    },
    watch:{
        "$route":{
            handler(newval){
                this.name = newval.meta.title
            }
        }
    }
}
</script>

<style>

</style>